//
//  PKRequestManager.h
//  PianKe
//
//  Created by 王浩宇 on 15/7/21.
//  Copyright (c) 2015年 王浩宇. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^requestFinish)(NSData *data);
typedef void (^requestError)(NSError *error);

typedef  NS_ENUM(NSInteger, RequestType) {
    GET,
    POST
};


@interface PKRequestManager : NSObject

@property (nonatomic, copy) requestFinish requestFinish;
@property (nonatomic, copy) requestError requestError;

//- (void)manager:(RequestType)requestType requestWith:(NSString *)urlStr parDic:(NSDictionary *)parDic finish:(requestFinish)finish error:(requestError)error;


+ (void)manager:(RequestType)requestType requestWith:(NSString *)urlStr parDic:(NSDictionary *)parDic finish:(requestFinish)finish error:(requestError)error;


@end
